
import '../config/app_const.dart';

///全局配置
class HttpGlobal {
  ///域名
  static const String baseUrl = AppConst.baseUrl;
  static const String pathSegmentsUrl = AppConst.pathSegmentsUrl; //PathSegments

  ///连接超时时间
  static const int connectTimeout = 50000;

  ///请求超市时间
  static const int sendTimeout = 50000;

  ///接收超时时间
  static const int receiveTimeout = 50000;

  ///是否启用缓存
  static const bool cacheEnable = true;

  ///缓存的最长时间，单位（秒）
  static const int cacheMaxAge = 1000;

  ///最大缓存数
  static const int cacheMaxCount = 100;
}
